k=0
for i in range(156691009,1,-1):
    x = i
    n = 1289
    print((x+n)//1000, x+n)
    while (x+n)//1000 < 156725:
        print(x, i, n)
        x = x - 3
        n = n + 8
    if n//1000==327:
        k+=1
        #print(k)

#макс= 156724999-1289=156723710
#n = 327000 327999
# 156691010
